home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gs250.exe / GSCONFIG < prev    next >
Encoding:
Text File  |  1992-06-01  |  801 b   |  34 lines

  1. if ( test "$1" = "+" ) then
  2.     shift
  3. else
  4.     rm -f _temp_.dft _temp_.dob _temp_.dlb _temp_.d
  5.     touch _temp_.dft _temp_.dob _temp_.dlb _temp_.d
  6.     rm -f _temp_.dh _temp_.dop _temp_.dps
  7.     echo '/* This file was automatically generated by Ghostscript (gsconfig). */' > _temp_.dh
  8.     echo '/* See gconfig.c for documentation. */' >>_temp_.dh
  9.     touch _temp_.dop _temp_.dps
  10. fi
  11. rm -f _temp_.c
  12. cat <<EOF >_temp_.c
  13. /bin/sh < _temp_.d
  14. rm -f obj.tr gconfig.h lib.tr
  15. sort <_temp_.dob | uniq >obj.tr
  16. mv _temp_.dh gconfig.h
  17. sort <_temp_.dft | uniq >>gconfig.h
  18. sort <_temp_.dop | uniq >>gconfig.h
  19. mv _temp_.dlb lib.tr
  20. sort <_temp_.dps | uniq >>gconfig.h
  21. rm -f _temp_.d*
  22. EOF
  23. for dev in $*
  24. do
  25.     if ( test "${dev}" = "+" ) then
  26.         rm -f _temp_.c
  27.         touch _temp_.c
  28.     else
  29.         cat ${dev} >>_temp_.d
  30.     fi
  31. done
  32. /bin/sh < _temp_.c
  33. rm _temp_.c
  34.